/**
 * File: LoadGraphController.java
 * Created by: mhaimel
 * Created on: Apr 21, 2010
 * CVS:  $Id: LoadGraphController.java 1.0 Apr 21, 2010 2:30:18 PM mhaimel Exp $
 */
package uk.ac.ebi.curtain.controller.graph;

import java.io.Serializable;
import java.util.List;

import uk.ac.ebi.curtain.controller.SingleSubmitController;

/**
 * @author mhaimel
 *
 */
public class UnloadGraphController extends SingleSubmitController<Serializable, Serializable> {

	@Override
	protected void singleSubmit(List<Serializable> inputList) {
		getLog().info("Unload Graph ... ");
		getContext().setGraph(null);
		System.gc();
		getLog().info("Unload Graph ... DONE ");
		
		for(Serializable s : inputList){
			submit(s);
		}
	}
	
}
